
// Every 10 seconds the Host checks to see if a TimeStamp is older than 5 seconds.
// If this is the case, then the Client program has stopped responding and both the
// ID and cooresponding TimeStamp need to be removed.
public class QueueHost implements Runnable {
    //ResultSet rs;
    DBComm dbComm;

    public QueueHost() {
        dbComm = new DBComm();
        dbComm.connect();
    }

    public void run() {
        //dbComm.initialRow();
        while (true) {
            dbComm.checkStamp();
            dbComm.updateQueueSummary();
            try {
                Thread.sleep(6000);
            } catch (InterruptedException ex) {
            }
        }
    }
}
